	function tierMenu(itemsStart,menuID)
		{
		  
		  var noMenus = document.getElementById(menuID).value; 
		   
		   objImage = document.getElementById('img_' + menuID); 
		   //objImage = eval('document.selectViewA.' + 'img_' + menuID);	
		  	
		   show = 0;   
		  
		  for (i=itemsStart;i<noMenus;i++)
		  {
			  var strFieldName = 'menu_' + i
			  var myElement1 = document.getElementById(strFieldName); 
			
			  if (myElement1.style.display == "none")
			   {
			    myElement1.style.display = "";
			    objImage.src = "gfx/icon_ui_collapse.gif";
				show = 1;
				
			   }
			    else
			   {
			    myElement1.style.display = "none";
			    objImage.src = "gfx/icon_ui_expand.gif";
				show = 0;
				}
			}
			document.getElementById('saveView').src = 'save_view_exec.asp?pageID=' + pageID + '&menuID=' + menuID + '&show=' + show;
		}

	function tierMenuMatrix(itemsStart,menuID,main_menuID)
		{
		  
		  var noMenus = document.getElementById(menuID).value; 
		   
		   objImage = document.getElementById('img_' + menuID); 
		   //objImage = eval('document.selectViewA.' + 'img_' + menuID);	
		  	
		   show = 0;   
		   var myElement1 = document.getElementById(main_menuID); 
		   if (myElement1.style.display == "none")
		   {
		   		myElement1.style.display = "";
		   }
		   else
		   {	
		   		myElement1.style.display = "none";
		   }
		  
		  for (i=itemsStart;i<noMenus;i++)
		  {
			  var strFieldName = 'menu_' + i
			  var myElement1 = document.getElementById(strFieldName); 
			
			  if (myElement1.style.display == "none")
			   {
			    myElement1.style.display = "";
			    objImage.src = "gfx/icon_ui_collapse.gif";
				show = 1;
				
			   }
			    else
			   {
			    myElement1.style.display = "none";
			    objImage.src = "gfx/icon_ui_expand.gif";
				show = 0;
				}
			}
			document.all.saveView.src = 'save_view_exec.asp?pageID=' + pageID + '&menuID=' + menuID + '&show=' + show;
		}